//
//  Presentation.h
//  ipadclient
//
//  Created by Stéphane Prohaszka on 27/04/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

@class Speaker;

@interface Presentation : NSObject <NSCoding, NSCopying> {
    int identification;
    NSString* title;
    NSString* thumbnail;
    NSString* summary;
    float duration;
    int totalVotes;
    int totalDownloads;
    NSMutableSet* speakers;
    NSMutableSet* keywords;
    NSString* type;
    NSString* asset;
}

@property (nonatomic, assign) int identification;
@property (nonatomic, retain) NSString* title;
@property (nonatomic, retain) NSString* thumbnail;
@property (nonatomic, retain) NSString* summary;
@property (nonatomic, assign) float duration;
@property (nonatomic, assign) int totalVotes;
@property (nonatomic, assign) int totalDownloads;
@property (nonatomic, retain) NSMutableSet* speakers;
@property (nonatomic, retain) NSMutableSet* keywords;
@property (nonatomic, retain) NSString* type;
@property (nonatomic, retain) NSString* asset;

- (id) initWithJson:(NSDictionary*)jsonObject;

- (void) addSpeaker:(Speaker*)speaker;
- (NSSet*) getSpeakers;
- (void) addKeywords:(NSString*)keyword;

@end
